home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Idle / RepeatingMethod.h < prev    next >
Text File  |  1997-06-28  |  445b  |  25 lines

  1. // RepeatingMethod.h
  2.  
  3. #ifndef RepeatingMethod_h
  4. #define RepeatingMethod_h
  5.  
  6. #ifndef MethodOf_h
  7. #include "MethodOf.h"
  8. #endif
  9. #ifndef Repeater_h
  10. #include "Repeater.h"
  11. #endif
  12.  
  13. template < class Target >
  14. class RepeatingMethod: public MethodOf< Target >,
  15.                               public Repeater
  16.   {
  17.     public:
  18.         RepeatingMethod( Target *t, MemberType m, bool startEnabled = true )
  19.           : MethodOf<Target>( t, m ),
  20.              Repeater( *this, startEnabled )
  21.           {}
  22.   };
  23.  
  24. #endif
  25.